package com.liusha.quicksand.service;

import com.liusha.quicksand.po.Blog;
import com.liusha.quicksand.vo.BlogQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 一世长安一世欢
 * @Date: 2020/10/19
 * @Time: 20:27
 * @Description: No Description
 */
public interface BlogService {

    Blog getBlog(Long blogId);

    Blog getAndConvert(Long blogId);

    Page<Blog> listBlog(Pageable pageable, BlogQuery blog);

    Page<Blog> listBlog(Pageable pageable);

    Page<Blog> listBlog(String query,Pageable pageable);

    List<Blog> listRecommendBlogTop(Integer size);

    Blog saveBlog(Blog blog);

    Blog updateBlog(Long blogId, Blog blog);

    void deleteBlog(Long blogId);
}
